package com.example.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.entity.PurchaseOrder;
import com.example.demo.entity.SaleOrder;

/**
 * @author cici
 */
public interface IPurchaseOrderService extends IService<PurchaseOrder> {

    /**
     * 订单创建
     * @param purchaseOrder
     * @return
     */
    PurchaseOrder create(PurchaseOrder purchaseOrder);

    /**
     * 订单详情
     * @param id
     * @return
     */
    PurchaseOrder detail(Integer id);

    /**
     * 分页查询
     * @param page
     * @param purchaseOrder
     * @return
     */
    IPage<PurchaseOrder> selectPage(Page<PurchaseOrder> page, PurchaseOrder purchaseOrder);
}
